package cn.webestar.scms.user.entity;

import cn.webestar.scms.commons.entity.BasicDO;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.util.Date;

@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@TableName(value = "t_message", autoResultMap = true)
@Schema(name = "Message", description = "消息")
public class Message extends BasicDO<Long> {

    @TableField("cid")
    @Schema(description = "租户")
    private Long cid;

    @TableField("type")
    @Schema(description = "消息类型 1：系统消息")
    private Integer type;

    @TableField("title")
    @Schema(description = "标题")
    private String title;

    @TableField("content")
    @Schema(description = "内容")
    private String content;

    @TableField("ref_type")
    @Schema(description = "长引用类型")
    private Integer refType;

    @TableField("ref_id")
    @Schema(description = "长引用id")
    private Long refId;

    @TableField("create_time")
    @Schema(description = "创建时间")
    private Date createTime;

}